
#include <iostream>
#include <cerrno>
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>

using namespace std;

void Usage(char *proc)
{
    cout << "Usage:" << proc << " pid signo" << endl;
}
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        return 1;
    }
    pid_t pid = atoi(argv[1]);
    int signo = atoi(argv[2]);
    kill(pid, signo);
    return 0;
}